package community.hospital.service.application;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sun.org.apache.xpath.internal.operations.Bool;
import community.hospital.common.BaseRemove;
import community.hospital.entity.Menu;
import community.hospital.entity.request.ListMenuRequest;
import community.hospital.entity.request.MenuRequest;

import java.util.List;

/**
 * @Author：ydj
 * @Date：2023/1/26 20:53
 */
public interface MenuApplicationService {
    /**
     * 根据角色id查询菜单
     * @param roleId
     * @return
     */
    List<Menu> listMenuByRoleId(Long roleId);

    /**
     * 新增菜单
     * @param request
     * @return
     */
    Boolean addMenu(MenuRequest request);

    /**
     * 批量删除菜单
     *
     * @param ids
     * @return
     */
    Boolean removeMenus(List<Long> ids);

    /**
     * 更新菜单
     *
     * @param request
     * @return
     */
    Boolean updateMenu(MenuRequest request);

    /**
     * 分页带条件查询
     * @param request
     * @return
     */
    Page<Menu> listMenu(ListMenuRequest request);
}
